package com.groupbuying.orderproducer.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author gxy
 * @Description 调用会员中心接口
 * @Date 2019/3/14 15:31
 **/

@Service
@FeignClient("bus-customer")
public interface CustomerFeign {
    //获取openid
    @RequestMapping(value = "/customerWxinInfo/getOpenidByCustomerId", method = RequestMethod.GET)
    String getOpenidByCustomerId(String customerId);

    /* 根据customerId获取mobile */
    @GetMapping("/customerInfo/getMobileByCustomerId")
    String getMobileByCustomerId(@RequestParam("customerId") String customerId);
}

